import Cookies from 'js-cookie'

const Totoken = 'token'
const precc = 'pre'
export function getToken(){
    return Cookies.get(Totoken)
}
export function setToken(token){
    return Cookies.set(Totoken,token)
}
export function removeToken(){
    return Cookies.remove(Totoken)
}
export function setpre(pres){
    return Cookies.set(precc,pres)
}
export function getpre(){
    return Cookies.get(precc)
}